<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<% form_for :presentation, @presentation, :url=>{:action=>"update_presentation"} do | f |%>
  ID:  <%= (@presentation.id|| "new") %> <%= f.hidden_field :id %><br />
  Title: <%= f.text_field :name %><br />
  Description: <%= f.text_area :description %><br />
  <%= submit_tag %><br />
  Presenters:<br />
  <% @people.each do | person |%>
    <%= "#{person.last_name}, #{person.first_name}"%> 
    <%= check_box_tag "person[#{person.id}]", "1", @presentation.has_role?(person, 'presenter') %>
    <br />
  <% end %>
  
<%end%>
